package com.ruoyi.wxauthentication.controller;


import com.ruoyi.wxauthentication.pojo.StudentInfo;
import com.ruoyi.wxauthentication.service.IStudentInfoService;
import com.ruoyi.wxcommon.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 凡哥哥
 * @since 2024-05-27
 */
@RestController
@RequestMapping("/student")
public class StudentInfoController {
    @Autowired
    IStudentInfoService studentInfoService;
    @GetMapping("/userAuthentication")
    public Result userAuthentication(Long studentNumber){
        return studentInfoService.userAuthentication(studentNumber);
    }
    @GetMapping("/test")
    public String test(){
        return "test";
    }
    @GetMapping("/userInfo")
    public Result<StudentInfo> authentication(Long studentNumber, String identificationNumber){
        return studentInfoService.authentication(studentNumber,identificationNumber);
    }
}

